﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Object One/Admin.Master" AutoEventWireup="true" CodeBehind="FindAccount.aspx.cs" Inherits="ProjectHK3.Object_One.FindAccount" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <div>
        <asp:Panel ID="Panel2" runat="server" HorizontalAlign="Center">          
            <table style="width: 65%;" border="1">
                <tr>
                    <td style="width: 450px"> 
                        <asp:Label ID="Label3" runat="server" Text="๖ۣۜSearch ๖ۣۜEmployees" ForeColor="#6699FF" Font-Bold="True" Font-Size="XX-Large"></asp:Label>
                        <br />
                        <asp:Label ID="Label1" runat="server" Text="❁Please enter account or name employee your staff need to find!!!" Font-Bold="True" ForeColor="#CCCC00"></asp:Label>
                    </td>
                </tr>
                <tr>
                    <td style="width: 450px">
                        <asp:Label ID="Label2" runat="server" Text="Account or Employee Name"></asp:Label>
                        <br />
                        <asp:TextBox ID="TextBox1" runat="server"></asp:TextBox>
                        <br />
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="TextBox1" ErrorMessage="Not Blank!" ForeColor="Red" SetFocusOnError="True"></asp:RequiredFieldValidator>
                        <br />
                        <asp:ImageButton ID="ImageButton1" runat="server" ImageUrl="~/Object One/images/1389547665_search.png" OnClick="ImageButton1_Click" />
                    </td>
                </tr>
            </table>            
        </asp:Panel>                
    </div>
    <div>
    </div>
    <div>
        <asp:Label ID="Label4" runat="server" Text="๖ۣۜResult" ForeColor="#6699FF" Font-Bold="True" Font-Size="XX-Large"></asp:Label>
        <table style="width:65%;">
            <tr>
                <td>&nbsp;</td>
                <td>&nbsp;</td>
                <td>&nbsp;</td>
            </tr>
            <tr>
                <td colspan="3">       
        <asp:GridView ID="_grwAccountsList" runat="server" AllowPaging="True" AllowSorting="True" AutoGenerateColumns="false" PageSize="15">
            <Columns>
                <asp:TemplateField HeaderText="FIRST NAME">
                    <ItemTemplate>
                        <asp:LinkButton ID="_lbtProfileAccount" runat="server" CommandArgument='<%# Eval("ACCOUNT_ID") %>' Text='<%# Eval("FIRST_NAME") %>' ToolTip="Profile Account"></asp:LinkButton>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:BoundField DataField="LAST_NAME" HeaderText="LAST NAME" />
                <asp:TemplateField HeaderText="USER NAME">
                    <ItemTemplate>
                        <asp:LinkButton ID="_lbtViewUser" runat="server" CommandArgument='<%# Eval("ACCOUNT_ID") %>' Text='<%# Eval("USER_NAME") %>' ToolTip="View Account Details"></asp:LinkButton>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="POSITION">
                    <ItemTemplate>
                        <asp:Label ID="_lblPosition" runat="server" Enabled="True" Text='<%# Eval("POSITION") %>' />
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="ACTIONS">
                    <ItemTemplate>
                        <asp:LinkButton ID="_lbtDelete" runat="server" CommandArgument='<%# Eval("ACCOUNT_ID") %>' CommandName="RemoveAccount" OnClientClick="return confirm('Are you sure you want to delete this record ?')" OnCommand="_lbtDelete_Command" ToolTip="Remove  Account" CausesValidation="False">Remove</asp:LinkButton>
                        &nbsp; &nbsp;
                        <asp:LinkButton ID="_lbtDetails" runat="server" CommandArgument='<%# Eval("ACCOUNT_ID") %>' CommandName="ViewAccountDetails" OnCommand="_lbtDetails_Command" ToolTip="View Account Details" CausesValidation="False">View Details</asp:LinkButton>
                    </ItemTemplate>
                </asp:TemplateField>
            </Columns>
        </asp:GridView>
                </td>
            </tr>
        </table>
        <br />       
        <br />
        <br />
    </div>
</asp:Content>
